package com.yc.tomcat.core;

import java.io.File;

public class ContantInfo {
	// 项目的部署路径
	public static final String APPLICATION_PATH = ReadConfig.getIntance().getProperty("path");
	
	// 基址路径，服务器路径
	public static final String BASE_PATH = System.getProperty("user.dir") + File.separator + APPLICATION_PATH + File.separator;
	
	// 默认资源
	public static final String DEFAULT_RESOURCE = ReadConfig.getIntance().getProperty("default");
	
	// 端口
	public static final int PORT = Integer.parseInt(ReadConfig.getIntance().getProperty("port"));
	
	public static final String REQUEST_METHOD_GET = "GET";
	public static final String REQUEST_METHOD_POST = "POST";
	public static final String REQUEST_COOKIE = "Cookie:";
	public static final String REQUEST_JSESSIONID = "JSESSIONID";
	public static final long SESSION_LIVE = 1000 * 10;  // session的过期时间
	public static final int CLEAR_SESSION_CYCLE = 2000;  // 监控清除session的循环周期 每隔两秒遍历一次session看是否过期 过期则清除
	
}
